package cn.cmft.jc.transform.parse;

public class ChangeDetail {

    private String oldTableName = "";
    private String currentTableName = "";
    private String oldColumnName = "";
    private String currentColumnName = "";
    private String currentColumnType = "";

    public ChangeDetail() {
    }

    public ChangeDetail(String oldColumnName){
        this.oldColumnName = oldColumnName;
    }


    public ChangeDetail(String oldColumnName, String currentColumnName, String columnType){
        this.oldColumnName = oldColumnName;
        this.currentColumnName = currentColumnName;
        this.currentColumnType = columnType;

    }

    public ChangeDetail(String currentColumnName, String columnType) {
        this.currentColumnName = currentColumnName;
        this.currentColumnType = columnType;
    }

    public String getCurrentColumnName() {
        return currentColumnName;
    }

    public void setCurrentColumnName(String currentColumnName) {
        this.currentColumnName = currentColumnName;
    }

    public String getOldColumnName() {
        return oldColumnName;
    }

    public void setOldColumnName(String oldColumnName) {
        this.oldColumnName = oldColumnName;
    }

    public String getOldTableName() {
        return oldTableName;
    }

    public void setOldTableName(String oldTableName) {
        this.oldTableName = oldTableName;
    }

    public String getCurrentTableName() {
        return currentTableName;
    }

    public void setCurrentTableName(String currentTableName) {
        this.currentTableName = currentTableName;
    }

    public String getCurrentColumnType() {
        return currentColumnType;
    }

    public void setCurrentColumnType(String currentColumnType) {
        this.currentColumnType = currentColumnType;
    }

    @Override
    public String toString() {
        return "{" +
                "oldTableName='" + oldTableName + '\'' +
                ", currentTableName='" + currentTableName + '\'' +
                ", oldColumnName='" + oldColumnName + '\'' +
                ", currentColumnName='" + currentColumnName + '\'' +
                ", currentColumnType='" + currentColumnType + '\'' +
                '}';
    }
}
